﻿using System.Collections.ObjectModel;
using KPIS.GERP.Models.FIM;
using KPIS.GERP.Models.HRM;
using KPIS.GERP.Models.ICM;
using KPIS.GERP.Models.SYS;
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;

namespace KPIS.GERP.Models.Migrations
{
    public partial class Configuration
    {
        public void SeedICM(GERPContext context)
        {
            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 1,
                    LookUpTypeName = "Scope",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 2,
                    LookUpTypeName = "ReceiveType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 3,
                    LookUpTypeName = "Priority",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 4,
                    LookUpTypeName = "DurationType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 5,
                    LookUpTypeName = "DurationCount",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 6,
                    LookUpTypeName = "Progress",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 7,
                    LookUpTypeName = "CommitteeFunction",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 8,
                    LookUpTypeName = "CommitteePosition",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 9,
                    LookUpTypeName = "CommitteeType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 10,
                    LookUpTypeName = "CollateralCategory",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 11,
                    LookUpTypeName = "CollateralStatus",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 12,
                    LookUpTypeName = "CollateralType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 13,
                    LookUpTypeName = "ParcelType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 14,
                    LookUpTypeName = "SysProcess",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 15,
                    LookUpTypeName = "ContactGroup",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 16,
                    LookUpTypeName = "ContactStatus",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 17,
                    LookUpTypeName = "VatType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 18,
                    LookUpTypeName = "AssetStatus",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 19,
                    LookUpTypeName = "MovementType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUpTypes.AddOrUpdate(
                new ICM.IcmMasLookUpType
                {
                    LookUpTypeId = 20,
                    LookUpTypeName = "PenaltyRateType",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );


            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 1,
                    LookUpTypeId = 7,
                    LookUpName = "กรรมการตรวจรับพัสดุ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 2,
                    LookUpTypeId = 7,
                    LookUpName = "กรรมการตรวจการจ้าง",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 3,
                    LookUpTypeId = 7,
                    LookUpName = "กรรมการเปิดซองสอบราคา",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 4,
                    LookUpTypeId = 8,
                    LookUpName = "ประธานกรรมการ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 5,
                    LookUpTypeId = 8,
                    LookUpName = "รองประธาน",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 6,
                    LookUpTypeId = 8,
                    LookUpName = "เลขานุการ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 7,
                    LookUpTypeId = 8,
                    LookUpName = "กรรมการ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 8,
                    LookUpTypeId = 9,
                    LookUpName = "บุคลากรภายใน",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 9,
                    LookUpTypeId = 9,
                    LookUpName = "บุคลากรภายนอก",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 10,
                    LookUpTypeId = 3,
                    LookUpName = "ปกติ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 11,
                    LookUpTypeId = 3,
                    LookUpName = "เร่งด่วน",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 12,
                    LookUpTypeId = 4,
                    LookUpName = "หลังจาก",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 13,
                    LookUpTypeId = 4,
                    LookUpName = "ภายในวันที่",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 14,
                    LookUpTypeId = 13,
                    LookUpName = "วัสดุ",
                    Description = "OS",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 15,
                    LookUpTypeId = 13,
                    LookUpName = "ครุภัณฑ์",
                    Description = "A",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 16,
                    LookUpTypeId = 2,
                    LookUpName = "รับเข้าโดยผ่านกระบวนการพัสดุ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 17,
                    LookUpTypeId = 2,
                    LookUpName = "โอนจากหน่วยงานอื่น",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 18,
                    LookUpTypeId = 2,
                    LookUpName = "บริจาค",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });



            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 19,
                    LookUpTypeId = 5,
                    LookUpName = "วันที่สร้างรายการ",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 20,
                    LookUpTypeId = 5,
                    LookUpName = "วันที่ยืนยันรายการ",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 21,
                    LookUpTypeId = 5,
                    LookUpName = "วันที่อนุมัติรายการ",
                    RecordStatus = "U",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });
            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 22,
                    LookUpTypeId = 14,
                    LookUpName = "PrePurchaseRequest",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });
            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 23,
                    LookUpTypeId = 14,
                    LookUpName = "PurchaseRequest",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });
            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 24,
                    LookUpTypeId = 14,
                    LookUpName = "PurchaseOrder",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 25,
                    LookUpTypeId = 14,
                    LookUpName = "DeliveryNote",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });
            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 26,
                    LookUpTypeId = 14,
                    LookUpName = "Bid",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 27,
                    LookUpTypeId = 14,
                    LookUpName = "Bidder",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });
            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 28,
                    LookUpTypeId = 6,
                    LookUpName = "ยังไม่ดำเนินการ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 29,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการจัดหา",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 30,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการประกาศ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 31,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการใบสั่ง/สัญญา",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 32,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการตรวจรับ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 33,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการขอความเห็นชอบ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 34,
                    LookUpTypeId = 6,
                    LookUpName = "ดำเนินการเบิกจ่าย",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 35,
                    LookUpTypeId = 15,
                    LookUpName = "บุคคลธรรมดา",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 36,
                    LookUpTypeId = 15,
                    LookUpName = "นิติบุคคล",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 37,
                    LookUpTypeId = 15,
                    LookUpName = "ส่วนราชการ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 38,
                    LookUpTypeId = 15,
                    LookUpName = "ต่างประเทศ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 39,
                    LookUpTypeId = 16,
                    LookUpName = "ติดต่อได้",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 40,
                    LookUpTypeId = 16,
                    LookUpName = "ขาดการติดต่อ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 41,
                    LookUpTypeId = 16,
                    LookUpName = "Blacklist",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 42,
                    LookUpTypeId = 17,
                    LookUpName = "รวมภาษี",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 43,
                    LookUpTypeId = 17,
                    LookUpName = "แยกภาษี",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 44,
                    LookUpTypeId = 17,
                    LookUpName = "ยกเว้นภาษี",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 45,
                    LookUpTypeId = 18,
                    LookUpName = "ใช้งานได้",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 46,
                    LookUpTypeId = 18,
                    LookUpName = "ชำรุด",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 47,
                    LookUpTypeId = 18,
                    LookUpName = "ส่งซ่อม",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 48,
                    LookUpTypeId = 19,
                    LookUpName = "Disp",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 49,
                    LookUpTypeId = 19,
                    LookUpName = "Move",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 50,
                    LookUpTypeId = 12,
                    LookUpName = "เงินสด",
                    Description = "Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 51,
                    LookUpTypeId = 12,
                    LookUpName = "เช็คที่ธนาคารสั่งจ่าย",
                    Description = "Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 52,
                    LookUpTypeId = 12,
                    LookUpName = "หนังสือค้ำประกันของธนาคารภายในประเทศ",
                    Description = "Non-Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 53,
                    LookUpTypeId = 12,
                    LookUpName = "หนังสือค้ำประกันของบรรษัทเงินทุนอุตสาหกรรม",
                    Description = "Non-Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 53,
                    LookUpTypeId = 12,
                    LookUpName = "พันธบัตรรัฐบาล",
                    Description = "Non-Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });


            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 53,
                    LookUpTypeId = 12,
                    LookUpName = "แคชเชียร์เช็ค",
                    Description = "Non-Finance",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 54,
                    LookUpTypeId = 10,
                    LookUpName = "หลักประกันสัญญา",
                    Description = "PO",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 55,
                    LookUpTypeId = 10,
                    LookUpName = "หลักประกันซอง",
                    RecordStatus = "Offer",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 56,
                    LookUpTypeId = 11,
                    LookUpName = "ยังไม่คืน",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 57,
                    LookUpTypeId = 11,
                    LookUpName = "คืนแล้ว",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 58,
                    LookUpTypeId = 20,
                    LookUpName = "% จากจำนวนเงินในงวดนั้นๆ",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 59,
                    LookUpTypeId = 20,
                    LookUpName = "จำนวนเงินตายตัว (บาท)",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 60,
                    LookUpTypeId = 1,
                    LookUpName = "ประเภท 1",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.IcmMasLookUps.AddOrUpdate(
                new ICM.IcmMasLookUp
                {
                    LookUpId = 61,
                    LookUpTypeId = 1,
                    LookUpName = "ประเภท 2",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 1,
                    PcTypeName = "ซื้อ",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 2,
                    PcTypeName = "จ้าง",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 3,
                    PcTypeName = "จ้างที่ปรึกษา",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 4,
                    PcTypeName = "จ้างออกแบบและควบคุมงาน",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 5,
                    PcTypeName = "แลกเปลี่ยน",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 6,
                    PcTypeName = "เช่า",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });

            context.MasPurchaseTypes.AddOrUpdate(
                new MasPurchaseType
                {
                    PcTypeId = 7,
                    PcTypeName = "ซ่อมบำรุง",
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now,
                    RecordStatus = RecordStatus.UsedStatus
                });


            context.MasResourceTypes.AddOrUpdate(
                new ICM.MasResourceType
                {
                    ResTypeId = 1,
                    Code = "1",
                    Name = "วัสดุ",
                    Descr = null,
                    DepreciationCalculate = "0",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.MasResourceTypes.AddOrUpdate(
                new ICM.MasResourceType
                {
                    ResTypeId = 2,
                    Code = "2",
                    Name = "ครุภัณฑ์",
                    Descr = null,
                    DepreciationCalculate = "1",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.MasResourceTypes.AddOrUpdate(
                new ICM.MasResourceType
                {
                    ResTypeId = 3,
                    Code = "3",
                    Name = "ที่ดิน",
                    Descr = null,
                    DepreciationCalculate = "0",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.MasResourceTypes.AddOrUpdate(
                new ICM.MasResourceType
                {
                    ResTypeId = 4,
                    Code = "4",
                    Name = "สิ่งก่อสร้าง",
                    Descr = null,
                    DepreciationCalculate = "1",
                    RecordStatus = SYS.RecordStatus.UsedStatus,
                    CreatedBy = 1,
                    CreatedWhen = DateTime.Now
                }
                );
            context.PurchaseOrders.AddOrUpdate(
                new ICM.PurchaseOrder
                {
                    PoId = 1,
                    Code = "",
                    Name = "พีโอ 1",
                });
            context.PurchaseOrders.AddOrUpdate(
                new ICM.PurchaseOrder
                {
                    PoId = 2,
                    Code = "",
                    Name = "พีโอ 1",
                });
        }
    }
}
